package choice_test;

import java.util.Scanner;

public class exercise_5 {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		System.out.println("please input the number:");
		int num=in.nextInt();
		int sum=0;
		int remainder =0;
		while(num/10!=0) {
			remainder=num%10;
			System.out.println(remainder);
			sum=sum*10+remainder;
			num/=10;
		}
		System.out.println(sum*10+num+1024);
		

	}

}
